Hogwarts Legacy is a 2023 action role-playing game developed by Avalanche Software and published by Warner Bros. Games under its Portkey Games label. It is part of the Wizarding World franchise, taking place a century before the Harry Potter novels. Players control a student enrolled at the magical Hogwarts School of Witchcraft and Wizardry who attends classes, learns spells, and explores an open world version of Hogwarts and its surroundings. With the assistance of fellow students and professors, the protagonist embarks on a journey to uncover an ancient secret hidden within the wizarding world.
Following Warner Bros.' acquisition of Avalanche Software in 2017, Hogwarts Legacy became the studio's first project unrelated to Disney Interactive Studios since 2005. Development began around 2018 and cost an estimated $150 million to produce. The storyline was designed to take place in a period untouched by established Wizarding World characters, offering players the opportunity to immerse themselves in their own distinct universe. Avalanche emphasised the importance of having the game resemble the Harry Potter novels, while also expanding beyond known locations to enrich the experience.
Hogwarts Legacy was highly anticipated. It attracted controversy over Harry Potter creator J. K. Rowling's views on transgender people and accusations of antisemitic tropes, leading to calls for a boycott. The early-access period of Hogwarts Legacy resulted in record-breaking viewership on streaming platform Twitch, making it the most-watched single-player game on the platform. Following some delays, it was released on 10 February 2023 for PlayStation 5, Windows, and Xbox Series X/S, on 5 May 2023 for PlayStation 4 and Xbox One, and on 14 November 2023 for Nintendo Switch. A Nintendo Switch 2 version was released on 5 June 2025.
Hogwarts Legacy received praise for its combat, world design, characters, variety of content, and faithfulness to the source material, but criticism for its technical problems and lack of innovation as an open world game. In its first two weeks, it sold over 12 million copies and generated $850 million in global sales revenue. It became one of the best-selling video games, selling 34 million copies and reaching $1 billion in total revenue. Hogwarts Legacy appeared on several publications' year-end lists and received accolades including nominations at the BAFTA Games Awards, D.I.C.E. Awards, and Grammy Awards.